package com.easysoft.framework.article.mapper;

import com.easysoft.framework.article.model.SysArticleQuery;
import com.easysoft.framework.article.model.SysArticleView;
import com.easysoft.framework.beans.Page;
import com.easysoft.framework.stereotype.MyBatisRepository;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by try on 2017/6/29.
 */
@MyBatisRepository("mapper.SysArticleMapperExtd")
public interface SysArticleMapperExtd extends SysArticleMapper {

    List<SysArticleView> selectSysArticleListByPage(@Param("page") Page page,@Param("query")SysArticleQuery query);

    int selectSysArticleListCount(@Param("query")SysArticleQuery query);

    List<Map<String,Object>> selectSysArticle(@Param("articleOrder") int articleOrder, @Param("categoryId") String categoryId);
}
